Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Jun 3, 2025

Queues are automatically declared for MQTT consumers, but they can be externally deleted. The consumer should be disconnected in such case, because it has no way of knowing this happened - from its perspective there are simply no messages to consume.

In RabbitMQ 3.11 the consumer was disconnected in such situation. This behaviour changed with native MQTT, which doesn't use AMQP internally.

Fixes #13785


This is an automatic backport of pull request #13996 done by [Mergify](https://mergify.com).

dcorbacho and others added 5 commits June 3, 2025 04:51
Queues are automatically declared for MQTT consumers, but they can be externally
deleted. The consumer should be disconnected in such case, because it has no way
of knowing this happened - from its perspective there are simply no messages to consume.

In RabbitMQ 3.11 the consumer was disconnected in such situation.
This behaviour changed with native MQTT, which doesn't use AMQP internally.

(cherry picked from commit bf468bd)

# Conflicts:
#	deps/rabbitmq_mqtt/test/mqtt_shared_SUITE.erl
(cherry picked from commit 610c838)
This reverts commit 5a02604.

(cherry picked from commit b48ab72)
@mergify mergify bot added the conflicts label Jun 3, 2025
@mergify
Copy link
Author

mergify bot commented Jun 3, 2025

Cherry-pick of bf468bd has failed:

On branch mergify/bp/v4.1.x/pr-13996
Your branch is up to date with 'origin/v4.1.x'.

You are currently cherry-picking commit bf468bdd5.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   deps/rabbitmq_mqtt/src/rabbit_mqtt_processor.erl
	modified:   deps/rabbitmq_mqtt/src/rabbit_mqtt_qos0_queue.erl
	modified:   deps/rabbitmq_mqtt/src/rabbit_mqtt_reader.erl

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   deps/rabbitmq_mqtt/test/mqtt_shared_SUITE.erl

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@michaelklishin michaelklishin merged commit a8e1ee4 into v4.1.x Jun 3, 2025
273 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.1.x/pr-13996 branch June 3, 2025 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants